/**
 * copyright (c) 2017-2021 厦门风领科技有限公司
 * http://www.fengling.cn/
 * 
 * 新手引导 管理器
 * chengen
 * 2023-11-02 20:14:46
 */

export class GuideManager {
    /** 单例 **/
    private static _instance: GuideManager;

    /**最大引导步数 */
    private stepMax = 11;

    static get instance() {
        if (this._instance) {
            return this._instance;
        }

        this._instance = new GuideManager();
        return this._instance;
    }

    /**获取步数数据 */
    getStepData(step: number) {
        if (step > this.stepMax) return {};

        switch (step) {
            case 0:
                return {
                    data: [[], [1, 1, 1], [], [1, 1, 1, 1, 1, 1, 1]],
                    deal: []
                };
            case 1:
                return {
                    data: [[], [1, 1, 1], [], [1, 1, 1, 1, 1, 1, 1]],
                    deal: []
                };
            case 2:
                return {
                    data: [[], [], [], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]],
                    deal: []
                };
            case 3:
                return {
                    data: [[], [], [], [2, 2]],
                    deal: []
                }
            case 4:
                return {
                    data: [[2, 2, 2, 2], [], [2, 2, 2, 2], [2, 2]],
                    deal: [[2, 2, 2, 2], [], [2, 2, 2, 2]]
                }
            case 5:
                return {
                    data: [[2, 2, 2, 2], [], [2, 2, 2, 2], [2, 2]],
                    deal: []
                };
            case 6:
                return {
                    data: [[], [], [2, 2, 2, 2, 2, 2, 2, 2], [2, 2]],
                    deal: []
                }
            case 7:
                return {
                    data: [[], [], [2, 2, 2, 2, 2, 2, 2, 2], [2, 2]],
                    deal: []
                }
            case 8:
                return {
                    data: [[], [], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2], []],
                    deal: []
                }
            case 9:
                return {
                    data: [[], [], [3, 3], []],
                    deal: []
                }
            case 10:
                return {
                    data: [[], [3, 3], []],
                    deal: []
                }
        }
    }
}
